package com.blue.gateway.constant;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @author liulei
 * @version 1.0
 */
@Data
@ConfigurationProperties(prefix = "auth")
public class AuthProperties {

    /**
     * The Route infos.
     */
    private List<RouteInfo> routeInfos;
    /**
     * The Exclude patterns.
     * 排除的URL
     */
    private List<String> excludePatterns;
    /**
     * 登录url
     */
    private List<String> loginPatterns;

    /**
     * 退出url
     */
    private List<String> quitPatterns;

    /**
     * The Debug mode.
     */
    private Boolean debugMode = Boolean.FALSE;

    @Data
    public static class RouteInfo {
        /**
         * The Host.
         */
        private String host;
        /**
         * The Path pattern.
         */
        private String pathPattern;
    }
}
